Skip to main content

GetLeftSwipeControl

Type

message

Summary

Handle this message to specify a custom data grid left hand side swipe control.

Syntax

on GetLeftSwipeControl

Description

GetLeftSwipeControl is sent to your data grid's custom row template. Handle GetLeftSwipeControl if you want to specify a custom left hand side swipe control. Return the id of the control you want to display. Returning empty will result in no control being displayed.

Handing this message will override the left swipe control property.

Examples

on GetLeftSwipeControl
return group "my custom left swipe control"
end GetLeftSwipeControl

on GetLeftSwipeControl
-- Hide for the data grid row number 5
if the dgIndex of me is 5 then
return empty
end if
pass GetLeftSwipeControl
end GetLeftSwipeControl

on GetLeftSwipeControl
-- Turn right drags and swipes off
return empty
end GetLeftSwipeControl

command: RowSwipeShowControlForIndexAndSide

message: RowSwipeHideControl, RowSwipedRight, RowSwipedLeft, RowLeftSwipeControlClicked, RowLeftSwipeControlClicked, RowRightSwipeControlClicked, RowLeftSwipeControlHidden, RowRightSwipeControlHidden, GetRightSwipeControl

property: enable swipe, left swipe control, right swipe control

Thank you for your feedback!

Was this page helpful?